//
//  FZDiscoverViewController.swift
//  FZSina_Swift
//
//  Created by 李忠 on 7/19/16.
//  Copyright © 2016 FZLZ. All rights reserved.
//

import UIKit

class FZDiscoverViewController: FZVisitorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        setupUI()
        setupLayout()
    }
    
    func setupUI() {
        //判断是否登录，没有登录，显示访客视图
        if !isLogin {
            noLoginView.setupVisitorViewInfo("visitordiscover_image_message", title: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
        }
        
        self.navigationItem.titleView = searchView
    }
    
    func setupLayout() {
        
        searchView.snp_makeConstraints(closure: { (make) in

            make.edges.equalTo(searchView.superview!)

        })
        
    }
    
    //搜索栏
    lazy var searchView: FZDiscoverSearchView = FZDiscoverSearchView()

}
